package cn.shyouchi.wuguanjia.android.api.casual;

import java.util.List;
import java.util.Map;

import cn.shyouchi.wuguanjia.android.model.BaseRequestResult;
import cn.shyouchi.wuguanjia.android.model.BaseResult;
import cn.shyouchi.wuguanjia.android.ui.casualrecord.ChooseGroup;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.PartMap;
import rx.Observable;

/**
 * Created by Eenie on 2017/3/22 at 16:33
 * Email: 472279981@qq.com
 * Des:
 */

public interface CasualService {

    @GET("readilyShootNumberlist")
    Observable<BaseResult<List<ChooseGroup>>> getPersons();

//
//    @GET("trainingInfo")
//    Observable<BaseRequestResult<MasterEntity>> getMasterData(@QueryMap Map<String, Object> params);
//
//    @GET("trainingInfo")
//    Observable<BaseRequestResult<TrainPostEntity>> getPostData(@QueryMap Map<String, Object> params);
//
//    @FormUrlEncoded
//    @POST("trainingAdd")
//    Observable<BaseRequestResult<String>> addTrainRecorder(@QueryMap Map<String, Object> params);



    @Multipart
    @POST("readilyShootAdd")
    Observable<BaseRequestResult> sendCasual(@PartMap() Map<String, RequestBody> pa,
                                                @Part List<MultipartBody.Part> imgs);
}
